List a long-crypto series' periods (the `Past` disclosure)
curl --request GET \
--url https://core.api.dev.predictstreet.sde.adifoundation.ai/api/crypto-long-series/{id}/periodsimport requests
url = "https://core.api.dev.predictstreet.sde.adifoundation.ai/api/crypto-long-series/{id}/periods"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://core.api.dev.predictstreet.sde.adifoundation.ai/api/crypto-long-series/{id}/periods', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://core.api.dev.predictstreet.sde.adifoundation.ai/api/crypto-long-series/{id}/periods",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://core.api.dev.predictstreet.sde.adifoundation.ai/api/crypto-long-series/{id}/periods"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://core.api.dev.predictstreet.sde.adifoundation.ai/api/crypto-long-series/{id}/periods")
.asString();require 'uri'
require 'net/http'
url = URI("https://core.api.dev.predictstreet.sde.adifoundation.ai/api/crypto-long-series/{id}/periods")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"periods": [
{
"slug": "<string>",
"key": "<string>",
"label": "<string>",
"startAt": "<string>",
"state": "live"
}
],
"hasMore": true
}crypto-long-series
List a long-crypto series' periods (the `Past` disclosure)
Pages a series’ periods. state defaults to past — the endpoint’s reason to exist — with upcoming/all present only for symmetry with /crypto-series/:id/windows. No live bucket: a period’s live instance is already carried inline on the event payload as cryptoLongSeries.period, a single row, not a page.
GET
/
api
/
crypto-long-series
/
{id}
/
periods
List a long-crypto series' periods (the `Past` disclosure)
curl --request GET \
--url https://core.api.dev.predictstreet.sde.adifoundation.ai/api/crypto-long-series/{id}/periodsimport requests
url = "https://core.api.dev.predictstreet.sde.adifoundation.ai/api/crypto-long-series/{id}/periods"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://core.api.dev.predictstreet.sde.adifoundation.ai/api/crypto-long-series/{id}/periods', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://core.api.dev.predictstreet.sde.adifoundation.ai/api/crypto-long-series/{id}/periods",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://core.api.dev.predictstreet.sde.adifoundation.ai/api/crypto-long-series/{id}/periods"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://core.api.dev.predictstreet.sde.adifoundation.ai/api/crypto-long-series/{id}/periods")
.asString();require 'uri'
require 'net/http'
url = URI("https://core.api.dev.predictstreet.sde.adifoundation.ai/api/crypto-long-series/{id}/periods")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"periods": [
{
"slug": "<string>",
"key": "<string>",
"label": "<string>",
"startAt": "<string>",
"state": "live"
}
],
"hasMore": true
}Path Parameters
Long-crypto series id.
Query Parameters
Required range:
x >= 0Required range:
1 <= x <= 500Defaults to past.
Available options:
past, upcoming, all Response
200 - application/json
Periods matching state, most recent start first. SAME shape as cryptoLongSeries.periods[] on the event payload — one DTO, two call sites.
Show child attributes
Show child attributes
True when more periods exist beyond this page — over-fetched by one and truncated server-side, so the FE can tell a truncated page from end-of-data.